Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: upgrade to different MSCA implementation #1

Merged

Conversation

jaypaik
Copy link
Collaborator

@jaypaik jaypaik commented Nov 18, 2023

No description provided.

@jaypaik jaypaik merged commit 8f44ba5 into main Nov 19, 2023
3 checks passed
@jaypaik jaypaik deleted the 11-18-test_test_upgrading_to_different_MSCA_implementation branch November 19, 2023 22:03
msca.upgradeToAndCall(mscaImpl2, "");

// verify account storage is the same
(, bytes memory returnData) = address(msca).call(abi.encodeWithSelector(MultiOwnerPlugin.owners.selector));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit:

Suggested change
(, bytes memory returnData) = address(msca).call(abi.encodeWithSelector(MultiOwnerPlugin.owners.selector));
address[] memory returnedOwners = MultiOwnerPlugin(msca).owners();


// verify account storage is the same
(, bytes memory returnData) = address(msca).call(abi.encodeWithSelector(MultiOwnerPlugin.owners.selector));
address[] memory returnedOwners = abi.decode(returnData, (address[]));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if follow above, remove this line

Suggested change
address[] memory returnedOwners = abi.decode(returnData, (address[]));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants